package Test;

import com.sun.media.jfxmediaimpl.platform.gstreamer.GSTPlatform;

/**
 * @author feng
 * @Date 2021/12/24 10:16
 */
public class Test08 {
    public static void main(String[] args) {
        String s = "no pains,no gains.";
        String[] split = new String[4];
        //字符串的正则表达式分割。空格、逗号，点
        split = s.split("[ ,.]");
        for (String m : split) {
            System.out.println(m);
        }

    }
}
